package com.example.dsssx_library.response;

import java.io.Serializable;

//枚举
public enum ResultCode implements CustomizeResultCode {
    SUCCESS(200, "成功"),
    FAIL(500, "失败")
    ;

    private Integer code;
    private String message;
    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
